{include file="admin/top.php" subject='products'}
{include file="products/top.php" subject='classes'}
<div id="content">

	<div id="tip">位置: <a href="{$site_admin}classes">根目录</a>{section name=id loop=$paths} &gt; <a href="{$site_admin}classes/{$paths[id].id}">{$paths[id].title}</a>{/section}</div>

    <form method="post">
    {classes limit=1 id=$myclassesid}
    <table width="100%" border="0" cellpadding="5" cellspacing="0" id="editor">
<!--        <tr> -->
<!--         <td width="100" class="title">父分类:</td> -->
<!--         <td width="240" class="content"><select name="parentid"> -->
<!--         <option value="0">根分类</option> -->
<!--         {foreach from=$myclasses key=key item=item} -->
<!--         <option value="{$item.id}" {if $item.id==$myparentid}selected{/if}> -->
<!--         {$item.title} -->
<!--         </option> -->
<!--         {if $item.children} -->
<!--         {foreach from=$item.children key=sub_key item=sub_item} -->
<!--          <option value="{$sub_item.id}" {if $sub_item.id==$myparentid}selected{/if}> -->
<!--         |——{$sub_item.title} -->
<!--         </option> -->
<!--         {/foreach} -->
<!--         {/if} -->
<!--         {/foreach} -->
        
<!--         </select> *</td> -->
<!--         <td class="content"> -->
<!--         </td> -->
<!--       </tr> -->
      <tr>
        <td width="100" class="title">姓名:</td>
        <td width="240" class="content"><input name="title" type="text" id="title" value="{$smarty.post.title|default:$classes.title:1}" size="30" /> *</td>
        <td class="content">
        {if $errors.empty_title}<span class="warning">负责人姓名不能为空</span>
        {else}负责人姓名
        {/if}
        </td>
      </tr>
<!--        <tr> -->
<!--         <td width="100" class="title">销售价底利率:</td> -->
<!--         <td width="240" class="content"><input name="priceline" type="text" id="priceline" value="{$smarty.post.priceline|default:$classes.priceline|default:$config->priceline}" size="30" /> *</td> -->
<!--         <td class="content"> -->
<!--         {if $errors.empty_priceline}<span class="warning">(%)销售价底利率不能为空</span> -->
<!--         {else}(%)该类的正常销售的最低利润 -->
<!--         {/if} -->
<!--         </td> -->
<!--       </tr> -->
<!--         <tr> -->
<!--         <td width="100" class="title">销售底价底利率:</td> -->
<!--         <td width="240" class="content"><input name="priceunderline" type="text" id="priceunderline" value="{$smarty.post.priceunderline|default:$classes.priceunderline|default:$config->priceunderline}" size="30" /> *</td> -->
<!--         <td class="content"> -->
<!--         {if $errors.empty_priceunderline}<span class="warning">(%)销售底价底利率不能为空</span> -->
<!--         {else}(%)该类的清仓促销的最低利润 -->
<!--         {/if} -->
<!--         </td> -->
<!--       </tr> -->
      <tr>
        <td class="title">显示顺序:</td>
        <td class="content"><input name="ordersn" type="text" id="ordersn" value="{$smarty.post.ordersn|default:$classes.ordersn|default:0}" size="30" /> *</td>
        <td class="content">产品分类的显示顺序</td>
      </tr>
      <tr>
        <td class="title">预警数量:</td>
        <td class="content"><input name="warningnum" type="text" id="warningnum" value="{$smarty.post.warningnum|default:$classes.warningnum|default:0}" size="30" /> *</td>
        <td class="content">该分类的预警数量，如果此分类下的商品没有具体的预警数量，则继承该值（默认为 5）</td>
      </tr>
       <tr class="noline">
        <td class="title">虚拟库存:</td>
        <td class="content"><input name="canbuyout" type="text" id="canbuyout" value="{$smarty.post.canbuyout|default:$classes.canbuyout|default:0}" size="30" /> </td>
        <td class="content">允许虚拟销售的库存数，如果为负值则此商品为0不显示缺货，库存为负此值或以下时，显示缺货，分类具体商品则继承该值（默认为 0）</td>
      </tr>
    </table>
    
    <div class="fr mt10">
    <input type="submit" value="确定" class="btn" />
    <a href="javascript:history.back();" class="btn">取消</a> 
    <input name="id" type="hidden" value="{$classes.id}" />
    <input name="referer" type="hidden" id="referer" value="{$smarty.post.referer|default:$smarty.server.HTTP_REFERER:1}" />
    <input name="action" type="hidden" id="action" value="modify" />
    </div>
    {/classes}
    </form>

</div>
{include file="admin/bottom.php"}
</body>
</html>
